<#include  "/common/csharp.ftl">
<#list doc.entitymodel.entity as entity>
<#if entity.@entity_name=object()>
using System;
namespace pos.entity
{
    /// <summary>
    /// Summary description for ${entity.@description}.
    /// </summary>
    public class ${entity.@entity_name?cap_first}
    {
        public ${entity.@entity_name?cap_first}()
        {
        }
        <#list entity.field as field>
        private <@fieldToCSharpType field=field/>  ${field.@name}_p;
        </#list>
        <#list entity.field as field>
        virtual public <@fieldToCSharpType field=field/> ${(field.@name="value")?string("value",field.@name)}
        {
        	 get{
        	 	return ${field.@name}_p;
        	 }
        	 set{
        	 	${field.@name}_p=value;
        	 }
        }
        </#list>
        <#list entity.relation as field >
		private <@fieldToCSharpType field=field/> ${field.@name}_r;
		virtual public <@fieldToCSharpType field=field/> ${field.@name}
        {
        	 get{
        	 	return ${field.@name}_r;
        	 }
        	 set{
        	 	${field.@name}_r=value;
        	 }
        }	
		</#list>
    }
}

<#break/>
</#if>
</#list>